# FROM openjdk:8-jre-slim

# WORKDIR /app

# # 复制jar包
# COPY target/order-service-1.0.0.jar app.jar

# # 暴露端口
# EXPOSE 9092

# # 启动命令
# CMD ["java", "-jar", "app.jar"]

FROM swr.cn-north-4.myhuaweicloud.com/gitcode/jdk:v1.8.191
LABEL maintainer="zhangsy <zhangsy1@csdn.net>"
RUN mkdir -p /data/web/app/ && useradd -ms /bin/bash -u 1000 appuser
ADD target/gitcode-test-branch-multi-order-service.jar /data/web/app/gitcode-test-branch-multi-order-service.jar
RUN chown -R appuser:appuser /data
WORKDIR /data/web/app/
CMD java -jar /data/web/app/gitcode-test-branch-multi-order-service.jar --spring.profiles.active=$ENV